import request from '@/utils/request'

// 获取广告图列表
export const getAdvImgListApi = (params) => {
    return request({
        url: "/ydd_advimg/list",
        method: "get",
        params
    })
}

// 获取广告图信息
export const getAdvImgInfoApi = (id) => {
    return request({
        url: "/ydd_advimg/rowInfo?id=" + id,
        method: "get"
    })
}

// 修改广告图
export const editAdvImgApi = () => {
    return request({
        url: "/ydd_advimg/update",
        method: "post"
    })
}

// 删除广告图
export const delAdvImgApi = (id) => {
    return request({
        url: "/ydd_advimg/del?id=" + id,
        method: "get"
    })
}
